package com.yuyang.gulimall.product.feign;

import com.yuyang.common.utils.R;
import com.yuyang.gulimall.product.feign.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yu yang
 * @date 2023/2/13 -19:59
 */
@FeignClient(value = "gulimall-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {
    @GetMapping("/getInfo/seckillSku/{skuId}")
    R getSkuInfoSeckill(@PathVariable("skuId")Long skuId);
}
